package com.lwlk.zdk.service.Binding.impl;


import com.lwlk.zdk.mapper.pw.pwPvBindingMapper;
import com.lwlk.zdk.model.pw.pwPvBinding;
import com.lwlk.zdk.service.Binding.BindingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BindingServiceImpl implements BindingService {


    @Autowired
    pwPvBindingMapper pwPvBindingMapper;


    @Override
    public int addList(pwPvBinding pwPvBinding) {
        int i=pwPvBindingMapper.insertSelective(pwPvBinding);
        return i;
    }

    @Override
    public List<Map<String, Object>> selectAll() {
        List<Map<String,Object>>bindingList=pwPvBindingMapper.selectAll();
        return bindingList;
    }

    @Override
    public int delete(Integer id) {
        int i=pwPvBindingMapper.deleteByPrimaryKey(id);
        return i;
    }
}
